﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewsList.ascx.cs" Inherits="RealState.W.AdminControl.NewsList" %>
<div class="grid_12">
    <div class="box">
        <h2>
            Danh sách tin tức
        </h2>
        <div class="block">
            <div class="block_in">
                <table class="display" id="categoriesTable">
                    <thead>
                        <tr>
                            <th>
                                STT
                            </th>
                            <th>
                                Tiêu đề
                            </th>
                             <th>
                                Thời gian
                            </th>
                            <th>
                                Trạng thái
                            </th>
                            <th>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="rptCategories" runat="server">
                            <ItemTemplate>
                                <tr class="gradeX">
                                    <td class="center">
                                        <%# Eval("RowNum")%>
                                    </td>                                 
                                    <td>
                                       <%# Eval("TITLE")%>
                                    </td>
                                     <td>
                                        <%# GetTime(Eval("CreatedTime"))%>
                                    </td>
                                      <td>
                                        <%# GetStatus(Eval("IsActive")) %>
                                    </td>
                                    <td class="center">
                                        <a href="News.aspx?Action=Edit&ID=<%#Eval("ID") %>" class="button white icon"><span
                                            class="b_icon b219"></span>Sửa</a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<!-- End of .grid_12 -->
<div class="clear">
</div>